package com.evil.application.pojo.dto.order.related;

import com.evil.application.pojo.dto.form.control.code.ControlDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotNull;

/**
 * @author liyang
 * @date 2023-05-19 13:56
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RelatedDataListReqDTO extends RelatedBaseReqDTO<RelatedDataListDTO> {
    /**
     * 控件id
     */
    @NotNull(message = "control not null")
    private ControlDTO control;

    /**
     * 汇总方式
     */
    private Integer summaryType;

    private RelatedDataListDTO result;

    @Override
    public RelatedDataListDTO get() {
        return this.result;
    }
}
